#include<iostream>

using namespace std;
const int N = 1e5 + 10;
using ll = long long;
int n, m, v;
int main()
{

    cin >> n >> m >> v;
    if (m < n - 1 || m > (n - 1)*(n - 2) / 2 + 1) 
    {
        cout << -1 << endl;
        return 0;
    }
    for (int i = 1; i <= n; i++)
    {
        if (i == v) continue;
        cout << v << " " << i << endl;
        m--;
    }
    int w = 1;
    if (w == v) w++;

    for (int i = 1; i <= n; i++)
    {
        for (int j = 1; j < i; j++)
        {
            if (!m) return 0;
            if (i == v || i == w || j == v || j == w) continue;
            cout << i << " " << j << endl;
            m--;
        }
    }
    return 0;
}